import React from 'react';
import { Link } from 'react-router-dom';

const messages = [
  { id: '0001', title: 'message001', content: '这是消息1' },
  { id: '0002', title: 'message002', content: '这是消息2' },
  { id: '0003', title: 'message003', content: '这是消息3' },
];

export default function Message() {
  return (
    <>
      <ul>
        {messages.map(it => (
          <li key={it.id}>
            {it.title}
          </li>
        ))}
      </ul>
    </>
  )
}
